package com.yc.pre.service.impl;

import com.yc.pre.entity.bo.PermissionRoleBo;
import com.yc.pre.mapper.primary.PreRolePermissionMapper;
import com.yc.pre.service.PreRolePermissionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName PreRolePermissionService
 * @Description
 * @Date 2021/02/08 18:13:51
 * @Created by ccc-j
 * @email ccc-ju@outlook.com
 */
@Service
public class PreRolePermissionServiceImpl implements PreRolePermissionService {

    @Resource
    private PreRolePermissionMapper preRolePermissionMapper;


    /**
     *获取所有权限及对应的角色
     * @return
     */
    @Override
    public List<PermissionRoleBo> getAllPermissionWithRole() {
        return preRolePermissionMapper.findAllPermissionWithRole();
    }
}
